package com.atguigu03._extends;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/27 19:00
 * @Version 1.0
 */
public class student extends Person {
    String school;
    public void study(){
        System.out.println("学生学习");
    }

    public void show1(){
        //错误 age 为private 无法引用
       // System.out.println("age :"+age );
        System.out.println("age : "+getAge());
    }


}
